﻿using System;
using System.Collections.Generic;
using System.Text;
using BCCommon;
using BCDto.OA.TeamWork.TeamWorkCategory;

namespace BCService.OA.TeamWork.TeamWorkCategory
{
    /// <summary>
    /// 协同办公分类
    /// </summary>
    public interface ITeamWorkCategoryService
    {
        /// <summary>
        /// 添加协同办公分类
        /// </summary>
        /// <param name="requestDto">协同办公分类信息</param>
        TeamWorkCategoryDto Add(TeamWorkCategoryRequestDto requestDto);
        /// <summary>
        /// 更新协同办公分类
        /// </summary>
        /// <param name="teamWorkCategoryId">协同办公分类Id</param>
        /// <param name="requestDto">协同办公分类信息</param>
        TeamWorkCategoryDto Update(int teamWorkCategoryId, TeamWorkCategoryRequestDto requestDto);
        /// <summary>
        /// 删除协同办公分类
        /// </summary>
        /// <param name="teamWorkCategoryId">协同办公分类Id</param>
        bool Delete(int teamWorkCategoryId);
        /// <summary>
        /// 获取协同办公分类
        /// </summary>
        /// <param name="teamWorkCategoryId">协同办公分类Id</param>
        TeamWorkCategoryDto GetEntity(int teamWorkCategoryId);
        /// <summary>
        /// 获取协同办公分类列表
        /// </summary>
        IEnumerable<TeamWorkCategoryDto> GetList();
        /// <summary>
        /// 获取协同办公分类分页列表
        /// </summary>
        /// <param name="teamWorkCategoryName">协同办公分类名称</param>
        /// <param name="teamWorkCategoryCode">协同办公分类编码</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">协同办公分类每页数据条数</param>
        PageableList<TeamWorkCategoryDto> Query(string teamWorkCategoryName, string teamWorkCategoryCode, DateTime? start, DateTime? end, int pageIndex, int pageSize);
    }
}
